#pragma once

#include <list>
using std::list;

#include "BaseController.h"
class Database
{
private:
	static Database* m_instance; //singleton variable
	
	list<BaseController*> m_ctrlList;

private:
	Database();
	~Database();

public:
	static Database& getInstance();
	static void close();

	void addController(BaseController* ctrl);
	//void onChange();

};

#define CTRLDATA Database::getInstance()